package com.li.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.li.domain.Advertisement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdvertisementMapper extends BaseMapper<Advertisement> {
    List<Advertisement> listPageAdvertisement(@Param("advertisement") Advertisement advertisement,
                    @Param("indexPage") Integer page,
                    @Param("limit") Integer limit);

    Integer listPageAdvertisementCount(@Param("advertisement") Advertisement advertisement);

}